﻿using System;
using System.Data;
using EAS.Data.Access;
using EAS.Data.ORM;
using System.Runtime.Serialization;

namespace DataStudio
{
   /// <summary>
   /// 实体对象 ACCOUNT(ACCOUNT)。
   /// </summary>
   [Serializable()]
   [Table("IM.ACCOUNT","ACCOUNT"),Index]
   partial class ACCOUNT: DataEntity<ACCOUNT>
   {
       public ACCOUNT()
       {
       }
       
       protected ACCOUNT(SerializationInfo info, StreamingContext context)
           : base(info, context)
       {
       }
       
       #region O/R映射成员

       /// <summary>
       /// EMPID 。
       /// </summary>
       [Column("EMPID","EMPID"),DataSize(10)]
       public int EMPID
       {
           get
           {
               return this.GetValue<int> ("EMPID");
           }
           set
           {
               this["EMPID"] = value;
           }
       }

       /// <summary>
       /// DEPTID 。
       /// </summary>
       [Column("DEPTID","DEPTID"),DataSize(10)]
       public int DEPTID
       {
           get
           {
               return this.GetValue<int> ("DEPTID");
           }
           set
           {
               this["DEPTID"] = value;
           }
       }

       /// <summary>
       /// HEADSHIPID 。
       /// </summary>
       [Column("HEADSHIPID","HEADSHIPID"),DataSize(10)]
       public int HEADSHIPID
       {
           get
           {
               return this.GetValue<int> ("HEADSHIPID");
           }
           set
           {
               this["HEADSHIPID"] = value;
           }
       }

       /// <summary>
       /// TYPE 。
       /// </summary>
       [Column("TYPE","TYPE"),DataSize(10)]
       public int TYPE
       {
           get
           {
               return this.GetValue<int> ("TYPE");
           }
           set
           {
               this["TYPE"] = value;
           }
       }

       /// <summary>
       /// TITLE 。
       /// </summary>
       [Column("TITLE","TITLE"),DataSize(10)]
       public int TITLE
       {
           get
           {
               return this.GetValue<int> ("TITLE");
           }
           set
           {
               this["TITLE"] = value;
           }
       }

       /// <summary>
       /// LOGINID 。
       /// </summary>
       [Column("LOGINID","LOGINID"),DataSize(64)]
       public string LOGINID
       {
           get
           {
               return this.GetValue<string> ("LOGINID");
           }
           set
           {
               this["LOGINID"] = value;
           }
       }

       /// <summary>
       /// CATEGORY 。
       /// </summary>
       [Column("CATEGORY","CATEGORY"),DataSize(64)]
       public string CATEGORY
       {
           get
           {
               return this.GetValue<string> ("CATEGORY");
           }
           set
           {
               this["CATEGORY"] = value;
           }
       }

       /// <summary>
       /// NAME 。
       /// </summary>
       [Column("NAME","NAME"),DataSize(64)]
       public string NAME
       {
           get
           {
               return this.GetValue<string> ("NAME");
           }
           set
           {
               this["NAME"] = value;
           }
       }

       /// <summary>
       /// PASSWORD 。
       /// </summary>
       [Column("PASSWORD","PASSWORD",DbType.Binary),DataSize(64)]
       public byte[] PASSWORD
       {
           get
           {
               return this.GetValue<byte[]> ("PASSWORD");
           }
           set
           {
               this["PASSWORD"] = value;
           }
       }

       /// <summary>
       /// ATTRIBUTES 。
       /// </summary>
       [Column("ATTRIBUTES","ATTRIBUTES"),DataSize(10)]
       public int ATTRIBUTES
       {
           get
           {
               return this.GetValue<int> ("ATTRIBUTES");
           }
           set
           {
               this["ATTRIBUTES"] = value;
           }
       }

       /// <summary>
       /// DESCRIPTION 。
       /// </summary>
       [Column("DESCRIPTION","DESCRIPTION"),DataSize(256)]
       public string DESCRIPTION
       {
           get
           {
               return this.GetValue<string> ("DESCRIPTION");
           }
           set
           {
               this["DESCRIPTION"] = value;
           }
       }
       
       #endregion
   }
}
